﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using iArtis.Models.Localization;

namespace iArtis.Controllers
{
    [HandleError]
    public class StudioController : LocalizedControllerBase
    {
        [AcceptVerbs(HttpVerbs.Get)]
        public ActionResult Index()
        {
            return View();
        }

        [AcceptVerbs(HttpVerbs.Get)]
        public ActionResult About()
        {
            return View();
        }

        [AcceptVerbs(HttpVerbs.Get)]
        public ActionResult Contacts()
        {
            return View();
        }

        [AcceptVerbs(HttpVerbs.Get)]
        public ActionResult Portfolio()
        {
            return View();
        }

        [AcceptVerbs(HttpVerbs.Get)]
        public ActionResult Services()
        {
            return View();
        }

        [AcceptVerbs(HttpVerbs.Get)]
        public JsonResult CurrentTab()
        {
            if (prevController == "Services") Models.JsonStorage.CurrentTab = "Services";
            else
                if (prevController == "Portfolio") Models.JsonStorage.CurrentTab = "Portfolio";
                else
                    if (prevAction == "Contacts") Models.JsonStorage.CurrentTab = "Contacts";
                    else
                        Models.JsonStorage.CurrentTab = "Studio";
            return Json(Models.JsonStorage.CurrentTab);
        }
    }
}
